<?php

/**
 *      [品牌空间] (C)2001-2010 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: ads.inc.php 4379 2010-09-09 03:00:50Z fanshengshuai $
 */

if(!defined('IN_ADMIN')) {
	exit('Acess Denied');
}

abstract class Adv /*implements IAdv*/ {
	var $version = '1.0';
	var $name = '';
	var $description = '';
	var $copyright = '<a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>';
	var $targets = array('index', 'street', 'goods', 'album', 'consume', 'groupbuy','map', 'notice');
	var $imagesizes = array('60x120', '60x250', '60x468');
	var $global_ad = true;

	abstract function getSettings();
	function setSettings(&$advnew, &$parameters) {
		$_target = $advnew['targets'];
		$advnew['targets'] = "";
		foreach ($_target as $k => $v) {
			$advnew['targets'] .= $v . "\t";
		}
		$advnew['targets'] = trim($advnew['targets']);
	}
	function getHtml() {}
}

//interface IAdv {
//	/**
//	 * 设置数组
//	 *
//	 */
//	function getSettings();
//	/**
//	 * 返回广告代码
//	 *
//	 */
//	function getHtml();
//}

?>
